<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>









  
  
  
  
  
  
  
  
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">









  
  
  
  
  
  
  
  
  <style type="text/css">
html { font-family: Arial,Helvetica,sans-serif;
background-color: white;
color: black;
}
p { max-width: 60em;
}
table { border-collapse: collapse;
empty-cells: show;
margin: 1em 0em;
border: 0.1em solid black;
}
th, td {
border-style: solid;
border-width: 0.05em 0.1em;
border-color: black;
padding: 0.1em 0.2em;
height: 1.5em;
}
th {
background-color: rgb(192, 192, 192);
color: black;
border-width: 0.1em;
font-weight: bold;
text-align: center;
text-transform: capitalize;
letter-spacing: 0.1em;
}
/* Widths of named columns */
col.name {
width: 10em;
}
.action , .value, .arg {
width: 15em;
}
/* Properties for the name column - td:first-child should work in CSS 2.1 avare browsers (tested in Firefox)
- col.name is against specs but works in IE
*/
td:first-child, col.name {
background-color: rgb(240, 240, 240);
text-transform: capitalize;
letter-spacing: 0.1em;
}
th { font-style: normal; } /* required for IE */
/* Properties for the action column
- td+td and td+td+td is for CSS 2.1 browsers (tested in Firefox)
- col.action is for IE
NOTE: Not used currently because in CSS 2.1 browsers td+td matches the
first value column of Setting and Variable tables.
td + td {
background-color: rgb(240, 240, 240);
}
td + td + td {
background: transparent;
}
col.action { /* can't be on the same line as td+td */
background-color: rgb(240, 240, 240);
}
*/
  </style>
  


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  <title>Logging Tests</title>
  <link rel="stylesheet" href="resources/css/testdata.css" type="text/css">
</head>


<body>









<h1>Logging Tests</h1>









<table border="1">








 <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup> <thead>
  <tr>









    <th>Setting</th>









    <th>Value</th>









    <th>Value</th>









    <th>value</th>









    <th>Value</th>









  </tr>









  </thead> <tbody>









    <tr>









      <td>Resource</td>









      <td>atest_resource.txt</td>









      <td></td>









      <td></td>









      <td></td>









    </tr>









    


    <tr>









      <td>Force Tags</td>









      <td>regression</td>









      <td>jybot</td>









      <td>smoke</td>









      <td></td>









    </tr>










    <tr>









      <td>Suite Setup</td>









      <td>Run Tests</td>









      <td><br>


      </td>









      <td>test_libraries${/}logging.html</td>









      <td></td>









    </tr>









  
  
  
  
  
  
  
  
  </tbody>
</table>
















<table border="1">









  <colgroup span="99"><col class="name"><col class="value" span="4"></colgroup> <thead>
  <tr>









    <th>Variable</th>









    <th>Value</th>









    <th>Value</th>









    <th>Value</th>









    <th>Value</th>









  </tr>









  </thead> <tbody>









    

    

    <tr>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









    </tr>









  
  
  
  
  
  
  
  
  </tbody>
</table>
















<table border="1">









  <colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
  <thead> <tr>









    <th>Test Case</th>









    <th>Action</th>









    <th>Argument</th>









    <th>Argument</th>









    <th>Argument</th>









  </tr>









  </thead> <tbody>









    <tr>









      <td>Logging From Java Library</td>









      <td>${tc} =</td>









      <td>Check testcase</td>








      <td>Logging From Java Library</td>








      <td></td>









    </tr>









    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Equal</td>








      <td align="undefined" valign="undefined">${tc.setup.messages[0].message}</td>








      <td>Hello\nworld\n!!</td>








      <td></td>








    </tr>








    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[0].messages[0]}</td>








      





      <td>Hello
from Java library!</td>








    </tr>








    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[1].messages[0]}</td>








      





      <td>Hello world!!</td>








      <td></td>








    </tr>











    <tr>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









    </tr>









    <tr>









      <td align="undefined" valign="undefined">Logging
From Python Library</td>









      <td>[ Tags ]</td>








      <td>pybot</td>










      <td align="undefined" valign="undefined"></td>









      <td align="undefined" valign="undefined"></td>









    </tr>










    <tr>








      <td></td>








      <td>${tc} =</td>








      <td>Check testcase</td>








      <td>Logging
From Python Library</td>








      <td></td>








    </tr>








    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>








      <td align="undefined" valign="undefined">${tc.kws[0].messages[0]}</td>








      <td>Hello from Python Library!</td>








      <td></td>








    </tr>









    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>








      <td align="undefined" valign="undefined">${tc.kws[2].messages[0]}</td>








      <td>stdout: Hello!!</td>








      <td></td>








    </tr>








    <tr>






      <td></td>






      <td>Check Stderr Contains</td>






      <td>Hello to stderr from Python Library!</td>






      <td></td>






      <td></td>






    </tr>










    <tr>








      <td></td>








      <td></td>








      <td></td>








      <td></td>








      <td></td>








    </tr>








    <tr>









      <td align="undefined" valign="undefined">Print
with Levels From Java</td>









      <td>${tc} =</td>








      <td>Check testcase</td>








      <td>Print
with Levels From Java</td>











      <td align="undefined" valign="undefined"></td>









    </tr>









    





    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>








      <td align="undefined" valign="undefined">${tc.kws[0].messages[0]}</td>








      <td>This is a warning</td>








      <td>WARN</td>








    </tr>










    





    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[1].messages[0]}</td>








      





      <td>This is an error</td>








      <td>ERROR</td>








    </tr>









    


    <tr>






      <td></td>






      <td>Check Stderr Contains</td>






      <td>*ERROR* This is an error to stderr</td>






      <td></td>






      <td></td>






    </tr>






    


    <tr>





      <td></td>





      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[2].messages[0]}</td>





      


      <td>This is an error to stderr</td>





      <td>ERROR</td>





    </tr>





    


    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[3].messages[0]}</td>








      





      <td>First
msg\n2nd line of1st msg</td>








      <td>INFO</td>








    </tr>








    





    





    





    





    <tr>


      <td align="undefined" valign="undefined"></td>


      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[3].messages[1]}</td>


      <td align="undefined" valign="undefined">2nd msg *INFO* Still 2nd</td>


      <td align="undefined" valign="undefined">INFO</td>


    </tr>


    <tr>









      <td align="undefined" valign="undefined"></td>









      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[4].messages[0]}</td>








      





      <td>1st
msg\n2nd line</td>











      <td align="undefined" valign="undefined">INFO</td>









    </tr>









    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[4].messages[1]}</td>








      





      <td>Second msg\n*INVAL* Still 2nd msg</td>








      <td>WARN</td>








    </tr>








    





    <tr>








      <td></td>








      <td align="undefined" valign="undefined">Check Log Message</td>


      <td align="undefined" valign="undefined">${tc.kws[4].messages[2]}</td>








      





      <td>Now 3rd
msg</td>








      <td>ERROR</td>








    </tr>









    <tr>









      <td align="undefined" valign="undefined"></td>









      <td align="undefined" valign="undefined"></td>









      <td align="undefined" valign="undefined"></td>









      <td align="undefined" valign="undefined"></td>









      <td align="undefined" valign="undefined"></td>









    </tr>









  
  
  
  
  
  
  
  
  </tbody>
</table>









<br>









<table border="1">









  <colgroup span="99"><col class="name"><col class="action"><col class="arg" span="3"></colgroup>
  <thead> <tr>









    <th>Keyword</th>









    <th>Action</th>









    <th>Argument</th>









    <th>Argument</th>









    <th>Argument</th>









  </tr>









  </thead> <tbody>









    <tr>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









      <td></td>









    </tr>









  
  
  
  
  
  
  
  
  </tbody>
</table>









</body>
</html>
